﻿using System;
using System.Runtime.Serialization;

namespace SlamDunk.ValueObjects.Structs
{
    /// <summary>
    /// 表单定义
    /// </summary>
    [Serializable]
    [DataContract]
    public class FormDefinition
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        public FormDefinition() { }
        #endregion

        #region 01.创建表单定义构造器
        /// <summary>
        /// 创建表单定义构造器
        /// </summary>
        /// <param name="webPath">Web路径</param>
        /// <param name="clientPath">客户端路径</param>
        /// <param name="mobilePath">移动端路径</param>
        /// <param name="structure">表单结构</param>
        public FormDefinition(string webPath, string clientPath, string mobilePath, string structure)
            : this()
        {
            this.WebPath = webPath;
            this.ClientPath = clientPath;
            this.MobilePath = mobilePath;
            this.Structure = structure;
        }
        #endregion

        #endregion

        #region # 属性

        #region Web路径 —— string WebPath
        /// <summary>
        /// Web路径
        /// </summary>
        [DataMember]
        public string WebPath { get; set; }
        #endregion

        #region 客户端路径 —— string ClientPath
        /// <summary>
        /// 客户端路径
        /// </summary>
        [DataMember]
        public string ClientPath { get; set; }
        #endregion

        #region 移动端路径 —— string MobilePath
        /// <summary>
        /// 移动端路径
        /// </summary>
        [DataMember]
        public string MobilePath { get; set; }
        #endregion

        #region 表单结构 —— string Structure
        /// <summary>
        /// 表单结构
        /// </summary>
        [DataMember]
        public string Structure { get; set; }
        #endregion 

        #endregion
    }
}
